package com.fowo.api.sys.model;

import lombok.Data;

import java.util.Date;
import java.util.Map;
import java.util.TreeMap;

/**
 * 系统任务错误信息模版数据
 */
@Data
public class SysTaskErrorMessageTemplateData {
    private Long id;
    private String taskName;
    private Date createTime;
    private String message;

    public Map<String,Object> toVariables() {
        Map<String, Object> variables = new TreeMap<>();
        variables.put("id", id);
        variables.put("taskName", taskName);
        variables.put("createTime", createTime);
        variables.put("message", message);
        return variables;
    }
}
